-- GENERATED SPELL FOR [Wretched Bruiser] --


function spell0_24689(pUnit, Event) --@Drink Fel Infusion,Self--
pUnit:FullCastSpellOnTarget(44505,pUnit)
pUnit:RegisterEvent('Sorts_24689', 10308, 1)
end

function spell1_24689(pUnit, Event) --@Wretched Strike,n/a--
pUnit:FullCastSpellOnTarget(44534,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24689', 5315, 1)
end

function Sorts_24689(pUnit, Event)
local choix_sorts_24689 = math.random(0, 1)
if choix_sorts_24689 == 0 then
pUnit:RegisterEvent('spell0_24689', 1, 1)
end
if choix_sorts_24689 == 1 then
pUnit:RegisterEvent('spell1_24689', 1, 1)
end
end

function mob24689_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24689', math.random(1500, 3000), 1)
end

function mob24689_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24689_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24689_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24689, 1, 'mob24689_Action')
RegisterUnitEvent(24689, 2, 'mob24689_Leave')
RegisterUnitEvent(24689, 3, 'mob24689_Kill')
RegisterUnitEvent(24689, 4, 'mob24689_Die')
